﻿//----------------------------------------------------------------
// Copyright (c) 2011-2013 
// All rights reserved.
// Author: Ben DaoWei 
// Contact: bendaowei@gmail.com
// Web Link: http://xnaeditor.codeplex.com
// ----------------------------------------------------------------

namespace UnityEngine.Graphics
{
    using MdxLib.Model;
    using Microsoft.Xna.Framework.Graphics;

    public class MaterialLayerRenderer : GraphicsRenderer
    {
        public CMaterialLayer CMaterialLayer { get; set; } 

        public TextureRenderer TextureRenderer { get; set; }

        public MaterialLayerRenderer(CMaterialLayer materialLayer, GraphicsDevice device)
            : base(device)
        {
            this.CMaterialLayer = materialLayer;

            TextureRenderer = new TextureRenderer(materialLayer.Texture.Object, device);
        }
    }
}
